<!DOCTYPE html>
<html>
<head>
<title>普通用户</title>
<#include "/header.html">
</head>
<body>
<div id="rrapp" v-cloak>
	<div v-show="showList">
		<div class="grid-btn">
			<div class="form-group col-sm-2">
				<input type="text" class="form-control" v-model="q.like" @keyup.enter="query" placeholder="会员名或者会员id">
			</div>
			<a class="btn btn-default" @click="query">查询</a>
			<#if shiro.hasPermission("sys:tbuser:info")>
			<a class="btn btn-primary" @click="info"><i class="fa fa-trash-o"></i>&nbsp;查看</a>
			</#if>
			<!--<#if shiro.hasPermission("sys:tbuser:save")>-->
            <!--<a class="btn btn-primary" @click="add"><i class="fa fa-plus"></i>&nbsp;新增</a>-->
			<!--</#if>-->
			<!--<#if shiro.hasPermission("sys:tbuser:update")>-->
            <!--<a class="btn btn-primary" @click="update"><i class="fa fa-pencil-square-o"></i>&nbsp;修改</a>-->
			<!--</#if>-->
			<#if shiro.hasPermission("sys:tbuser:delete")>
            <a class="btn btn-primary" @click="del"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
			<a class="btn btn-primary" @click="team1"><i class="fa fa-trash-o"></i>&nbsp;查询一级团队</a>
				<a class="btn btn-primary" @click="team2"><i class="fa fa-trash-o"></i>&nbsp;查询二级团队</a>
				<a class="btn btn-primary" @click="team3"><i class="fa fa-trash-o"></i>&nbsp;查询三级团队</a>
				<a class="btn btn-primary" @click="team4"><i class="fa fa-trash-o"></i>&nbsp;查询四级团队</a>
			</#if>
		</div>
	    <table id="jqGrid"></table>
	    <div id="jqGridPager"></div>
    </div>
    
    <div v-show="showList2" class="panel panel-default">
		<div class="panel-heading">{{title}}</div>
		<form class="form-horizontal">
											<div class="form-group">
			   	<div class="col-sm-2 control-label">用户名</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.username" placeholder="用户名"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">手机号</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.mobile" placeholder="手机号"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">密码</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.password" placeholder="密码"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">创建时间</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.createTime" placeholder="创建时间"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">UID</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.uuid" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">余额</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.balance" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">说明</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.description" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">电子邮箱</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.email" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">昵称</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.nickname" placeholder=""/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">头像</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.profileimageurl" placeholder=""/>
				  <img :src="tbuser.profileimageurl" style="max-width: 200px">
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">性别</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.sex" placeholder="性别"/>

			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">用户类型</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.type" placeholder="用户类型 0：普通用户 1：会员 2：代理"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">魅力值</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.charmvalue" placeholder="魅力值"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">能量值</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.energyvalue" placeholder="能量值"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">代理库存</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.agentinventory" placeholder="代理库存"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">积分等级</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.integrallevel" placeholder="积分等级"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">代理等级</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.agentlevel" placeholder="代理等级"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">能量值等级</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.energyvaluelevel" placeholder="能量值等级"/>
			    </div>
			</div>
									<div class="form-group">
			   	<div class="col-sm-2 control-label">佣金余额</div>
			   	<div class="col-sm-10">
			      <input type="text" class="form-control" v-model="tbuser.balanceCommission" placeholder="佣金余额"/>
			    </div>
			</div>
							<div class="form-group">
				<div class="col-sm-2 control-label"></div> 
				<!--<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>-->
				<!--&nbsp;&nbsp;-->
				<input type="button" class="btn btn-warning" @click="reload" value="返回"/>
			</div>
		</form>
	</div>

	<div v-show="teamList" class="panel panel-default">
		<div class="panel-heading">{{title2}}</div>
		<table id="teamListApp" style="width: 100%;height: 100%"></table>
		<div id="teamListAppPager"></div>
		<div class="form-group">
			<div class="col-sm-2 control-label"></div>
			<!--<input type="button" class="btn btn-primary" @click="saveOrUpdate" value="确定"/>-->
			<!--&nbsp;&nbsp;-->
			<input type="button" class="btn btn-warning" @click="back" value="返回"/>
		</div>
	</div>
</div>

<script src="${request.contextPath}/statics/js/modules/sys/tbuser.js?_${.now?long}"></script>
</body>
</html>